# -*-  coding:utf-8 -*- 
# Author : lihongliang


# def stu_register(name,age,course,country="chine"):
#     print("注册信息")
#     print("姓名",name )
#     print("年龄",age)
#     print("国籍",country)
#     print("课程",course)
#
# stu_register("王山炮",22,"python")



# def stu_register(name,age,*args,**kwargs):
#     print(name,age,args,kwargs)
#
# stu_register("aliang",33,"python",sex="male",province = "shanDong")
"""       
sut_01 = "alex li"

def chang_name(name):
    print("before",name)
    name = "aliang"
    print("after",name)

chang_name(sut_01)

name = "Alex"


def change_name():
    name = "Alex2"

    def change_name2():
        name = "Alex3"
        print("第3层打印", name)

    change_name2()  # 调用内层函数
    print("第2层打印", name)


change_name()
print("最外层打印", name)


a = [1,2,3,4,5,6]
for index,i in enumerate(a):
    a[index] +=1
print(a)

b = range(10)
a = [i+1  for  i  in b]
print(a)

def calc(x,y):
    return x*y

func = lambda x,y:x*y  # 声明一个匿名函数
print(func(3,8))

func = lambda x,y :x*y  if x<y else x/y
print(func(16,8))
"""

data = list(range(10))

print(list(map(lambda x:x*x, data)))



